/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import entity.HashTag;
import entity.Tweet;
import java.util.ArrayList;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.ViewScoped;
import sessionbeans.HashTagFacade;
import sessionbeans.TweetFacade;
import sessionbeans.UsersFacade;

/**
 *
 * @author ccaly
 */
@ManagedBean(name="HashTagBean")
@ViewScoped
public class HashTagBean {


    @EJB
    private TweetFacade tf;
   
       /** Creates a new instance of HashTagBean */
    public HashTagBean() {
    }
    
    private List<Tweet> listTweetHashTag = new ArrayList<Tweet>();
    
    private String  label;
    
    public void recherche()
    {        
       this.listTweetHashTag = tf.listTweet(label);
       //return "HashTagRecherche";
    }
    
    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
    

    public List<Tweet> getListTweetHashTag() {
        return listTweetHashTag;
    }

    public void setListTweetHashTag(List<Tweet> listTweetHashTag) {
        this.listTweetHashTag = listTweetHashTag;
    }

   

    
    
}
